﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using YJM.Modbus.Client.Models.Enum;

namespace YJM.Modbus.Client.Models
{
    public class ModbusDeviceProperties
    {
        public string Ip { get; set; }
        public string Port { get; set; }
        public string Name { get; set; }
        public List<ModbusSignal> Signals { get; set; }
    }

    public class ModbusSignal
    {
        public int Addr { get; set; }
        public string Name { get; set; }
        public byte Code { get; set; }
        public string DataType { get; set; }
        public string SignalType { get; set; }
        public float Factor { get; set; }
    }
}
